//
//  SCDataTableViewCell.m
//  UI_豆瓣项目
//
//  Created by dllo on 15/11/6.
//  Copyright (c) 2015年 关业达. All rights reserved.
//

#import "SCDataTableViewCell.h"

@implementation SCDataTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubview];
    }
    return self;
}

- (void)createSubview
{
    self.titleLable = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 355, 30)];
    [self.contentView addSubview:self.titleLable];
    [_titleLable release];

}

// 重写setter方法
- (void)setShoucang:(SCList *)shoucang
{
    if (_shoucang != shoucang) {
        [_shoucang release];
        _shoucang = [shoucang retain];
    }
    self.titleLable.text = shoucang.title;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
